package net.jeeshop.core.pay;

import net.jeeshop.core.pay.alipay.ALiPay;
import net.jeeshop.core.pay.wxpay.WXPay;

/**
 * Created by xvhuichuang on 2017/7/9.
 */
public class PayFactory {

    public enum PayType{
        WX_PAY,ALI_PAY
    }

    public static IPay create(PayType type){
        switch (type){
            case WX_PAY:
                return new WXPay();
            case ALI_PAY:
                return new ALiPay();
            default:
                return null;
        }
    }


}
